/*
 * @(#)NewBody.java 0.0.1-SNAPSHOT
 * Copyright Group B
 */

package grupb.upf.XMLObjects;

import java.util.List;

/**
 * <p>The interface of the body of a new. It contains paragraphs and photos.</p>
 *
 * @version    0.0.1-SNAPSHOT
 * @author     Group B
 */
public interface NewBody {
    /**
     * Method to set the ID of the element, which can be a photo or a paragraph.
     * @param object the paragraph or photo to be added
     */
    void addElement(Object object);
    /**
     * Method to get the object in a known position of the new's body.
     * @param position the position of the photo
     * @return the ID of the photo
     */
    Object getElementAt(int position);
    /**
     * Method to get all the objects.
     * @return the paragraphs and photos of the body
     */
    List getElements();
}
